package com.data.center.service;

import com.data.center.dto.RegionDivisionRelationDto;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@Slf4j
class RegionDivisionRelationServiceTestSC {

    @Autowired
    RegionDivisionRelationService regionDivisionRelationService;

    @Test
    void insert() {
        RegionDivisionRelationDto regionDivisionRelationDto = new RegionDivisionRelationDto();
        regionDivisionRelationDto.setDivisionCode("testte");
        regionDivisionRelationDto.setRegionCode("testtest");
        regionDivisionRelationService.insert(regionDivisionRelationDto);
    }

    @Test
    void find() {
        log.info(regionDivisionRelationService.findByDivisionCode("610000").toString());
    }
}